package com.cs.framework.common.bo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.cs.framework.jdbc.common.bo.PagingInfo;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 业务对象基础类
 * 
 * @author hedongzhou
 * 
 */
@MappedSuperclass
public class BoBase extends PagingInfo {

	private static final long serialVersionUID = -8813781708819941819L;

	/**
	 * 有效标志
	 */
	protected String valid;

	/**
	 * 创建人
	 */
	@Column(name = "create_user")
	protected String createUser;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "create_date")
	protected Date createDate;

	/**
	 * 修改人
	 */
	@Column(name = "update_user")
	protected String updateUser;

	/**
	 * 修改日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "update_date")
	protected Date updateDate;

	public String getValid() {
		return valid;
	}

	public void setValid(String valid) {
		this.valid = valid;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}
